/* 隐藏滚动条但保留滚动功能 */
/* 方法1: 使用 scrollbar-width (Firefox) */
* {
    scrollbar-width: none;
}

/* 方法2: 使用 ::-webkit-scrollbar (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    display: none;
}
/* 确保容器可以滚动 */
.container,
.duplicates-modal,
.duplicates-content,
.favorite-panel,
.delete-panel,
.favorite-list,
.delete-list {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    overflow-y: auto;
}
.favorite-list{
    max-height: 500px;
}
/* 对话框内容区域的滚动 */
.modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    max-height: 80vh;
    padding-right: 20px; /* 补偿滚动条消失的空间 */
}

/* 文件列表的滚动 */
.file-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    max-height: calc(100vh - 200px); /* 适应剩余空间 */
}

/* 确保所有可滚动容器都应用这些样式 */
.duplicate-files,
.file-info {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
}

/* 如果有水平滚动的需求，也可以隐藏水平滚动条 */
*::-webkit-scrollbar-horizontal {
    display: none;
}
/* 主要容器布局 */
.container {
    padding: 20px;
    padding-top: 60px;
    background: linear-gradient(135deg, #f6f9fc, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 标题栏样式优化 */
.titlebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-app-region: drag;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.titlebar-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* 输入组样式优化 */
.input-group {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
}

.path-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.path-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* 按钮样式优化 */
.btn, .submit-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.25);
}

/* 文件项样式优化 */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #f8fafd;
    transform: translateX(4px);
    border-color: #3498db;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.1);
}

/* 通知提示样式优化 */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    font-size: 15px;
    max-width: 320px;
    word-break: break-all;
    backdrop-filter: blur(10px);
}

/* 模态框样式优化 */
.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 收藏面板样式优化 */
.favorite-panel {
    position: fixed;
    right: 24px;
    top: 80px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.favorite-header {
    padding: 20px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafd, #ffffff);
}
/* 排序控制区域优化 */
.sort-controls {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    align-items: center;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    font-size: 14px;
    color: #2c3e50;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: #3498db;
}

.sort-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

.sort-btn {
    padding: 10px 20px;
    background: #f8fafd;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-btn:hover {
    background: white;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

/* 文件信息和元数据优化 */
.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
}

/* 收藏项样式优化 */
.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    transition: all 0.3s ease;
    background: white;
}

.favorite-item:hover {
    background: #f8fafd;
    transform: translateX(4px);
}

/* 文件夹路径样式优化 */
.folder-path {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #f8fafd;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.folder-path:hover {
    border-color: #3498db;
    background: white;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.1);
}

.folder-path-label {
    font-weight: 600;
    color: #64748b;
    min-width: 120px;
    font-size: 14px;
}

.folder-path-value {
    flex: 1;
    word-break: break-all;
    font-family: 'Fira Code', monospace;
    color: #2c3e50;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* 删除按钮样式优化 */
.remove-btn {
    padding: 8px 16px;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.remove-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* 剪贴板对话框按钮优化 */
#useClipboardBtn,
#cancelClipboardBtn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#useClipboardBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

#useClipboardBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.25);
}

#cancelClipboardBtn {
    background: #f1f5f9;
    color: #64748b;
}

#cancelClipboardBtn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* 模态框导航按钮优化 */
.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(8px);
    pointer-events: auto;
    font-size: 14px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 关闭按钮优化 */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
    border-radius: 12px;
}

.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #64748b;
    transition: all 0.3s ease;
}

.close-modal::before {
    transform: rotate(45deg);
}

.close-modal::after {
    transform: rotate(-45deg);
}

.close-modal:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.close-modal:hover::before,
.close-modal:hover::after {
    background: white;
}

/* 文件信息表格优化 */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.info-table th,
.info-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.info-table th {
    background: #f8fafd;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.info-table td {
    color: #2c3e50;
    font-size: 14px;
}

/* 模态框内容区域优化 */
#modalContent {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#modalContent img,
#modalContent video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* 文件信息栏优化 */
.file-info-bar {
    padding: 16px 20px;
    background: #f8fafd;
    border-top: 1px solid #eef2f7;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    border-radius: 0 0 12px 12px;
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e2e8f0;
    }
    
    .container {
        background: linear-gradient(135deg, #1e293b, #0f172a);
    }
    
    .input-group,
    .sort-controls,
    .file-item,
    .modal-content,
    .favorite-panel {
        background: #1e293b;
        border-color: #334155;
    }
    
    .path-input,
    .sort-select {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .sort-btn {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .file-meta {
        color: #94a3b8;
    }
    
    .folder-path {
        background: #0f172a;
        border-color: #334155;
    }
    
    .folder-path-value {
        background: rgba(15, 23, 42, 0.5);
        color: #e2e8f0;
    }
    
    .close-modal {
        background: #334155;
    }
    
    .close-modal::before,
    .close-modal::after {
        background: #94a3b8;
    }
    
    .info-table {
        background: #1e293b;
    }
    
    .info-table th {
        background: #0f172a;
        color: #94a3b8;
    }
    
    .info-table td {
        color: #e2e8f0;
        border-color: #334155;
    }
    
    .file-info-bar {
        background: #0f172a;
        border-color: #334155;
        color: #94a3b8;
    }
}

/* 动画优化 */
@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .input-group,
    .sort-controls {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .folder-path {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .folder-path-label {
        min-width: auto;
    }
}

/* 模态框基础样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none; /* 默认不显示 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 模态框显示时的样式 */
.modal.show {
    display: flex;
}

/* 对话框基础样式 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 对话框显示时的样式 */
.dialog.show {
    display: flex;
}

/* 对话框内容样式 */
.dialog-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-content h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
}

/* 剪贴板路径显示 */
#clipboardPath {
    background: #f8fafd;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
    color: #2c3e50;
    border: 1px solid #eef2f7;
}

/* 对话框按钮容器 */
.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* 状态栏样式 */
.status-bar {
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    font-size: 14px;
    color: #64748b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 设置区域样式 */
.settings-section {
    padding: 60px 20px 20px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* 文件列表容器 */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 深色模式补充 */
@media (prefers-color-scheme: dark) {
    .dialog-content {
        background: #1e293b;
    }
    
    .dialog-content h3 {
        color: #e2e8f0;
    }
    
    #clipboardPath {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .status-bar {
        background: #1e293b;
        color: #94a3b8;
    }
    
    .settings-section {
        background: #1e293b;
    }
}

/* 响应式补充 */
@media (max-width: 480px) {
    .dialog-content {
        width: 95%;
        padding: 20px;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
    
    .titlebar-button {
        width: 28px;
        height: 28px;
    }

    .titlebar-button.minimize-button::before {
        width: 10px;
    }

    .titlebar-button.maximize-button::before {
        width: 10px;
        height: 10px;
    }

    .titlebar-button.close-button::before,
    .titlebar-button.close-button::after {
        width: 12px;
    }
}
.titlebar-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; /* 将按钮推到右侧 */
    height: 100%;
    padding: 0 4px;
    -webkit-app-region: no-drag; /* 防止按钮区域可拖动 */
}
/* 窗口控制按钮基础样式 */
/* 标题栏按钮基础样式 */
.titlebar-button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
    -webkit-app-region: no-drag;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0;
    margin: 0;
}

/* 最小化按钮 */
.titlebar-button.minimize-button::before {
    content: '';
    width: 12px;
    height: 2px;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease;
}

/* 最大化按钮 */
.titlebar-button.maximize-button::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

/* 最大化状态 */
.titlebar-button.maximize-button.maximized::before {
    width: 10px;
    height: 10px;
    border-width: 2px;
    border-top-width: 4px;
}

/* 关闭按钮 */
.titlebar-button.close-button::before,
.titlebar-button.close-button::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: white;
    top: 50%;
    left: 50%;
    transition: all 0.2s ease;
}

.titlebar-button.close-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.titlebar-button.close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 悬停效果 */
.titlebar-button.minimize-button:hover,
.titlebar-button.maximize-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.titlebar-button.close-button:hover {
    background: #e74c3c;
}

/* 点击效果 */
.titlebar-button:active {
    transform: scale(0.95);
}

/* macOS 风格 */
.is-mac .titlebar-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.is-mac .titlebar-button.minimize-button {
    background: #ffbd2e;
}

.is-mac .titlebar-button.maximize-button {
    background: #28c940;
}

.is-mac .titlebar-button.close-button {
    background: #ff5f57;
    margin-right: 0;
}

.is-mac .titlebar-button::before,
.is-mac .titlebar-button::after {
    display: none;
}

.is-mac .titlebar-button:hover {
    filter: brightness(0.8);
}

/* 高亮显示样式 */
.current-file {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db !important;
    animation: highlightPulse 2s ease-in-out;
}

/* 文件项高亮 */
.file-item.highlight {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db !important;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.15);
}

/* 收藏项高亮 */
.favorite-item.current-file {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
}

/* 文件夹路径高亮 */
.folder-path.current-file {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db !important;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.15);
}

/* 高亮动画效果 */
@keyframes highlightPulse {
    0% {
        background: rgba(52, 152, 219, 0.1);
    }
    50% {
        background: rgba(52, 152, 219, 0.2);
    }
    100% {
        background: rgba(52, 152, 219, 0.1);
    }
}

/* 删除面板样式 */
.delete-panel {
    position: fixed;
    right: 24px;
    top: 80px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.delete-header {
    padding: 20px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafd, #ffffff);
}

.delete-list {
    max-height: 400px;
    overflow-y: auto;
}

.delete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    transition: all 0.3s ease;
    background: white;
}

.delete-item:hover {
    background: #f8fafd;
}

/* 标记为删除的文件项样式 */
.file-item.marked-delete {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444 !important;
}

/* 重复文件对话框样式 */
.duplicates-modal {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.duplicates-content {
    padding: 20px;
}

.duplicate-group {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafd;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}

.duplicate-group h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 16px;
}

.duplicate-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duplicate-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

.file-name {
    flex: 1;
    font-weight: 500;
    margin-right: 16px;
}

.file-info {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-favorite,
.btn-delete {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-favorite {
    background: #3498db;
    color: white;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-favorite:hover {
    background: #2980b9;
}

.btn-delete:hover {
    background: #dc2626;
}
/* 修改模态框头部样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-header .close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-header .close:hover {
    background: #f1f5f9;
    color: #ef4444;
}
/* 批量操作按钮容器 */
.batch-actions {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 组标题和复选框容器 */
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* 复选框样式 */
.file-checkbox {
    display: flex;
    align-items: center;
    margin-right: 12px;
    cursor: pointer;
}

.group-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.file-checkbox input[type="checkbox"],
.group-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

/* 修改文件项布局 */
.duplicate-file {
    display: flex;
    align-items: center;
}

/* 批量操作按钮样式 */
.btn-select-all,
.btn-invert-select,
.btn-batch-favorite,
.btn-batch-delete {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-batch-favorite {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-batch-delete {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-select-all:hover,
.btn-invert-select:hover {
    background: #f1f5f9;
}

.btn-batch-favorite:hover {
    background: #2980b9;
}

.btn-batch-delete:hover {
    background: #dc2626;
}
/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .modal-header {
        border-bottom-color: #334155;
    }
    
    .modal-header .close {
        color: #94a3b8;
    }
    
    .modal-header .close:hover {
        background: #1e293b;
        color: #ef4444;
    }
    .btn-favorite {
        background: #2980b9;
    }
    
    .btn-delete {
        background: #dc2626;
    }
    
    .btn-favorite:hover {
        background: #3498db;
    }
    
    .btn-delete:hover {
        background: #ef4444;
    }
}

/* 搜索框样式 */
.search-container {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-count {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

/* 搜索结果高亮 */
.duplicate-file.highlight {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .search-container {
        border-bottom-color: #334155;
    }
    
    .search-input {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .search-input:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }
    
    .search-count {
        color: #94a3b8;
    }
    
    .duplicate-file.highlight {
        background: rgba(52, 152, 219, 0.2);
    }
}

/* 优化滚动条样式 */
.duplicates-content {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.duplicates-content::-webkit-scrollbar {
    width: 6px;
}

.duplicates-content::-webkit-scrollbar-track {
    background: transparent;
}

.duplicates-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
    .duplicates-content {
        scrollbar-color: #475569 transparent;
    }
    
    .duplicates-content::-webkit-scrollbar-thumb {
        background-color: #475569;
    }
}

/* 添加选中状态的样式 */
.duplicate-file.marked-favorite {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db !important;
}

.duplicate-file.marked-delete {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444 !important;
}

/* 复选框样式优化 */
.file-checkbox input[type="checkbox"],
.group-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px;
    cursor: pointer;
}

/* 按钮禁用状态 */
.btn-favorite:disabled,
.btn-delete:disabled,
.btn-batch-favorite:disabled,
.btn-batch-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .duplicate-file.marked-favorite {
        background: rgba(52, 152, 219, 0.2);
    }
    
    .duplicate-file.marked-delete {
        background: rgba(239, 68, 68, 0.2);
    }
}